package com.itcat.service;

import com.itcat.common.CommonPage;
import com.itcat.mysql.param.UmsAdminParam;
import com.itcat.mysql.param.UpdatePasswordParam;
import com.itcat.mysql.pojo.UmsAdmin;
import com.itcat.mysql.pojo.UmsResource;
import com.itcat.mysql.pojo.UmsRole;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * [一句话描述该类的功能]
 *
 * @author : [Cr Mr]
 * @version : [v1.0]
 * @date : [2022/3/30 14:40]
 */
@Service
public interface UmsAdminService {
    String login(String username, String password);

    UmsAdmin getAdminByUsername(String username);

    List<UmsResource> getResourceList(Long adminId);

    Map info(String username);

    String refreshToken();

    CommonPage<UmsAdmin> getPage(String keyword, Integer pageNum, Integer pageSize);

    void delete(Long id);

    void reoleUpdate(Long adminId, Long[] roleIds);

    List<UmsRole> getByRole(Long adminId);

    void update(UmsAdmin admin);

    void updatePassword(UpdatePasswordParam updatePasswordParam);

    void updateStatus(Long id, Integer status);

    UmsAdmin getUmsAdmin(Long id);

    UmsAdmin register(UmsAdminParam umsAdminParam);
}
